package com.shinewind.pojo.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(description = "用于返回购物车列表数据")
public class CartVo implements Serializable {
    @ApiModelProperty(value = "购物车商品id")
    private String key;
    @ApiModelProperty(value = "购物车商品名称")
    private String name;
    @ApiModelProperty(value = "购物车商品信息")
    private String info;
    @ApiModelProperty(value = "购物车商品单价")
    @JsonProperty("sPrice")
    private Double sPrice;
    @ApiModelProperty(value = "购物车商品数量")
    private Integer amount;
    @ApiModelProperty(value = "购物车商品图片路径")
    private String src;
    @ApiModelProperty(value = "商品id")
    @JsonProperty("mId")
    private String mId;
}
